#include <fstream>

bool gcd(int a, int b, int c, long long &x, long long &y)
{
	if ((a == 0) && (b == 0))
	{
		if (c == 0)
		{
			x = 0;
			y = 0;
			return true;
		}
		else
			return false;
	}

	if (a == 0)
	{
		if (c % b == 0)
		{
			x = 0;
			y = c / b;
			return true;
		}
		else
			return false;
	}

	long long x_temp, y_temp;
	if (gcd(b % a, a, c, x_temp, y_temp))
	{
		x = y_temp - (b / a) * x_temp;
		y = x_temp;
		return true;
	}
	else  
		return false;
}

int main()
{
	std::ifstream input("in.txt");
	std::ofstream output("out.txt");
		
	int a, b, c;
	long long x, y;

	while (input >> a >> b >> c)
	{
		if (gcd(a, b, c, x, y))
			output << x << ' ' << y << '\n';
		else
			output << "<none>\n";
	}

	return 0;
}